﻿
@{
    ViewBag.Title = "Developer";
}
@section CSS{
}
<div class="content-wrapper">

    <section class="content-header">
        <h1>
            开发
            <small>维护</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="/home/index"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li class="active">开发维护</li>
        </ol>
    </section>
    <section class="content">
        <div class="row">
            <div class="col-md-9">
                @if (ViewBag.Right)
                {
                    <div class="ibox-content">
                        <form class="form-horizontal" id="form-add">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">确认结算：</label>
                                <div class="col-sm-6">
                                    <a href="javascript:void(0);" onclick="CheckFinance()"> testCheck</a>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">结算：</label>
                                <div class="col-sm-6">
                                    <a href="javascript:void(0);" onclick="DealFinance()"> testDeal</a>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">退款结算：</label>
                                <div class="col-sm-6">
                                    <a href="javascript:void(0);" onclick="FinanceReturn()"> testReturn</a>
                                </div>
                            </div>
                            <div class="form-group" style="display:none;">
                                <label class="col-sm-3 control-label">矫正类别：</label>
                                <div class="col-sm-6">
                                    <a href="javascript:void(0);" onclick="ResetCategory()"> 矫正类别</a>
                                </div>
                            </div>
                            <div class="form-group" style="display:none;">
                                <label class="col-sm-3 control-label">商家通知：</label>
                                <div class="col-sm-6">
                                    <a href="javascript:void(0);" onclick="SendGroupMsg()"> 商家通知</a>
                                </div>
                            </div>
                            <div class="form-group"  >
                                <label class="col-sm-3 control-label">取消订单消息通知：</label>
                                <div class="col-sm-6">
                                    <a href="javascript:void(0);" onclick="SendOrderMsg()"> 消息通知</a>
                                </div>
                            </div>
                        </form>
                    </div>
                }
                else
                {
                    <div>没有权限</div>
                }
            </div>
        </div>
    </section>


</div>
@section JS{
    <script>
                            function CheckFinance() {
                                $.ajax({
                                    type: 'POST',
                                    url: "/home/CheckAllFinance",
                                    data: { },
                                    dataType: 'json',
                                    success: function (data) {
                                        console.log(data);
                                    },
                                });
                            }
                            function DealFinance() {
                                $.ajax({
                                    type: 'POST',
                                    url: "/home/DealAllFinance",
                                    data: {},
                                    dataType: 'json',
                                    success: function (data) {
                                        console.log(data);
                                    },
                                });
                            }
                            function FinanceReturn() {
                                $.ajax({
                                    type: 'POST',
                                    url: "/home/DealAllReturn",
                                    data: {},
                                    dataType: 'json',
                                    success: function (data) {
                                        console.log(data);
                                    },
                                });
                            }
                           //function ResetCategory() {
                           //     $.ajax({
                           //         type: 'POST',
                           //         url: "/home/ResetCategory",
                           //         data: { },
                           //         dataType: 'json',
                           //         success: function (data) {
                           //             console.log(data);
                           //         },
                           //     });
                           // }
                           // function SendGroupMsg() {
                           //     $.ajax({
                           //         type: 'POST',
                           //         url: "/home/SendGroupMsg",
                           //         data: { },
                           //         dataType: 'json',
                           //         success: function (data) {
                           //             console.log(data);
                           //         },
                           //     });
                           // }
                           function SendOrderMsg() {
                                $.ajax({
                                    type: 'POST',
                                    url: "/tools/SendOrderMsg",
                                    data: { },
                                    dataType: 'json',
                                    success: function (data) {
                                        console.log(data);
                                    },
                                });
                            }
    </script>
}